<script setup lang="js">
import MessageInput from './message/MessageInput.vue';
import MessageScroll from './message/MessageScroll.vue';
</script>

<template>
    <div class="container">
        <div class="message-list">
            <MessageScroll />
        </div>
        <div class="message-input">
            <MessageInput/>
        </div>
    </div>
</template>

<style scoped>
.container {
    position: relative;
    box-sizing: border-box;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.message-list {
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.message-input {
    padding: 3px;
}
</style>